import request from '@/utils/request'

// 查询人才会客厅列表
export function listLounge(query) {
  return request({
    url: '/talent/lounge/list',
    method: 'get',
    params: query
  })
}

// 查询人才会客厅详细
export function getLounge(talentLoungeId) {
  return request({
    url: '/talent/lounge/' + talentLoungeId,
    method: 'get'
  })
}

// 新增人才会客厅
export function addLounge(data) {
  return request({
    url: '/talent/lounge',
    method: 'post',
    data: data
  })
}

// 修改人才会客厅
export function updateLounge(data) {
  return request({
    url: '/talent/lounge',
    method: 'put',
    data: data
  })
}

// 删除人才会客厅
export function delLounge(talentLoungeId) {
  return request({
    url: '/talent/lounge/' + talentLoungeId,
    method: 'delete'
  })
}
